]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
test-recorder: Don't use deprecated API
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 13 Feb 2012 20:04:50 +0000 (15:04 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Feb 2012 19:04:11 +0000 (14:04 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=670034

src/test-recorder.c

index ba5aa749b0499a3e34a59b7fa7318e40ee6837a8..ee7fcae7a6bed2975a30c06d7eb738a16954d3d1 100644 (file)
@@ -44,7 +44,7 @@ int main (int argc, char **argv)
                       "font-name", "Sans 40px",
                       "color", &red,
                       NULL);
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), text);
+  clutter_actor_add_child (stage, text);
   animation = clutter_actor_animate (text,
                                     CLUTTER_EASE_IN_OUT_QUAD,
                                     3000,
@@ -62,7 +62,7 @@ int main (int argc, char **argv)
                       "y", 0,
                       NULL);
   clutter_actor_set_anchor_point_from_gravity (text, CLUTTER_GRAVITY_NORTH_EAST);
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), text);
+  clutter_actor_add_child (stage, text);
   animation = clutter_actor_animate (text,
                                     CLUTTER_EASE_IN_OUT_QUAD,
                                     3000,
@@ -78,7 +78,7 @@ int main (int argc, char **argv)
                       "y", 480,
                       NULL);
   clutter_actor_set_anchor_point_from_gravity (text, CLUTTER_GRAVITY_SOUTH_WEST);
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), text);
+  clutter_actor_add_child (stage, text);
   animation = clutter_actor_animate (text,
                                     CLUTTER_EASE_IN_OUT_QUAD,
                                     3000,